﻿using System;
using System.Runtime.InteropServices;
//=========================================
//
// 作 者：LsongStudio
// 邮 箱：song940@gmail.com
// 博 客：http://lsongs.host.sk/
// 时 间：2010-11-24 18:37:56
//
//=========================================
namespace VirusCleaner.SysMenu
{
    internal class NativeMethods
    {
        public const int WM_SYSCOMMAND = 0x0112;
        public static readonly IntPtr TRUE = new IntPtr(1);

        [DllImport("user32.dll", SetLastError = true)]
        public static extern IntPtr GetSystemMenu(IntPtr hWnd, bool bRevert);

        [DllImport("user32.dll", SetLastError = true)]
        public static extern bool InsertMenu(
            IntPtr hMenu,
            int wPosition,
            int wFlags,
            int wIDNewItem,
            string lpNewItem);

        [DllImport("user32.dll",SetLastError = true)]
        public static extern bool AppendMenu(
            IntPtr hMenu, int wFlags, int wIDNewItem, string lpNewItem);
    }
}
